package com.ringtheweb.serviceprovider.weather.core;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("locationService")
public class LocationService implements ILocationService {
	
	private LocationTree locationTree;
	
	
	public LocationService() {
		
	}
	

	public LocationTree getLocationTree() {
		return locationTree;
	}

	@Autowired
	public void setLocationTree(LocationTree locationTree) {
		this.locationTree = locationTree;
	}

	
	/* (non-Javadoc)
	 * @see com.ringtheweb.serviceprovider.weather.core.ILocationService#discoverLocations()
	 */
	public void discoverLocations() {
		locationTree.walk();
	}
	
	/**
	 * Prévoir mécanisme de  callback
	 * public void discoverLocationsAsync() {
		
	}*/
	

}
